package bitbot.md;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class DeepData extends MarketData {

	private List<DeepRec> m_bid = new ArrayList<DeepRec>();
	private List<DeepRec> m_ask = new ArrayList<DeepRec>();
	
	@Override public MarketDataType type() { return MarketDataType.DEEP;}

	public DeepData(PairExchangeData ped, List<DeepRec> bid, List<DeepRec> ask) {
		super(ped);
		m_bid = bid;
		m_ask = ask;
	}
	
	public List<DeepRec> getBid() {
		return m_bid;
	}

	public List<DeepRec> getAsk() {
		return m_ask;
	}
	
	public static class DeepRec {
		private final BigDecimal m_price;
		private final BigDecimal m_size;

		public BigDecimal getPrice() {
			return m_price;
		}

		public BigDecimal getSize() {
			return m_size;
		}

		public DeepRec(BigDecimal price, BigDecimal size) {
			m_price = price;
			m_size = size;
		}
	}
}
